**************************
*	Andrea Pareschi
*   Matteo Giglioli
*   Gianfranco Baldini
*	January 2022
*	Article "Caught between sovereignty and solidarity?"
*	Replication material
*   Do-file n. 2
**************************



***************
* 1) Variables in the Dataset
***************


* This dataset is rooted in the data contained in the EUEngage dataset, as analysed in line with the Do-file n. 1
* It was constructed as follows
* It comprises 77 units of observation: each one is a party dyad
* For each party dyad, evidence on the average elite position (direct and indirect) and on the average mass position was included along each scale
* The name of each variable contains key information on its nature
* "Eli" means that the variable refers to the elite level, whereas "Mas" means that the variable refers to the mass level
* "Ave" reflects the fact that the variable reflects an average position
* "Obj" means that the variable stems from "direct" elite self-placement, whereas "Per" implies that is is anchored in "indirect" mass perceptions
* As for the final digit that appears in the name of each variable:
* 	"7" refers to General European integration
* 	"1" refers to Authority over economic policy
* 	"2" refers to Pooling of economic resources
* 	"3" refers to Authority over immigration policy
* 	"4" refers to Costs of providing asylum
* Finally, as concerns variable "Counter":
* 	Its value is 1 for parties which qualify for inclusion in the direct analyses alongside the indirect analyses(N=40)
* 	Its value is missing for the parties which only qualify for inclusion in the indirect analyses (N=37)


***************
* 2) Correlations and Responsiveness
***************


* General European integration
* 	Correlations
* 		Mass and "direct" elite positions
pwcorr EliAveObj7 MasAveCloIU7, obs sig
* 		Mass and "direct" elite positions, with alternative specifications
pwcorr EliAveObj7 MasAveCloGP7, obs sig
pwcorr EliAveObj7 MasAveVotGP7, obs sig
pwcorr EliAveObj7 MasAveVotIU7, obs sig
* 	Responsiveness (regression)
* 		Mass and "direct" elite positions
regress EliAveObj7 MasAveCloIU7
* 		Mass and "direct" elite positions, with alternative specifications
regress EliAveObj7 MasAveCloGP7
regress EliAveObj7 MasAveVotGP7
regress EliAveObj7 MasAveVotIU7

* Authority over economic policy
* 	Correlations
* 		Mass and "direct" elite positions
pwcorr EliAveObj1 MasAveCloIU1, obs sig
* 		Mass and "direct" elite positions, with alternative specifications
pwcorr EliAveObj1 MasAveCloGP1, obs sig
pwcorr EliAveObj1 MasAveVotGP1, obs sig
pwcorr EliAveObj1 MasAveVotIU1, obs sig
* 		Mass and "indirect" elite positions
pwcorr EliAvePerIU1 MasAveCloIU1, obs sig
* 		Mass and "indirect" elite positions, with alternative specifications
pwcorr EliAvePerGP1 MasAveCloGP1, obs sig
pwcorr EliAvePerGP1 MasAveVotGP1, obs sig
pwcorr EliAvePerIU1 MasAveVotIU1, obs sig
* 		Mass and "indirect" elite positions, with 40 parties instead of 77
pwcorr EliAvePerGP1 MasAveCloGP1 if Counter==1, obs sig
pwcorr EliAvePerGP1 MasAveVotGP1 if Counter==1, obs sig
pwcorr EliAvePerIU1 MasAveCloIU1 if Counter==1, obs sig
pwcorr EliAvePerIU1 MasAveVotIU1 if Counter==1, obs sig
* 	Responsiveness (regression)
* 		Mass and "direct" elite positions
regress EliAveObj1 MasAveCloIU1
* 		Mass and "direct" elite positions, with alternative specifications
regress EliAveObj1 MasAveCloGP1
regress EliAveObj1 MasAveVotGP1
regress EliAveObj1 MasAveVotIU1
* 		Mass and "indirect" elite positions
regress EliAvePerIU1 MasAveCloIU1
* 		Mass and "indirect" elite positions, with alternative specifications
regress EliAvePerGP1 MasAveCloGP1
regress EliAvePerGP1 MasAveVotGP1
regress EliAvePerIU1 MasAveVotIU1
* 		Mass and "indirect" elite positions, with 40 parties instead of 77
regress EliAvePerGP1 MasAveCloGP1 if Counter==1
regress EliAvePerGP1 MasAveVotGP1 if Counter==1
regress EliAvePerIU1 MasAveCloIU1 if Counter==1
regress EliAvePerIU1 MasAveVotIU1 if Counter==1

* Pooling of economic resources
* 	Correlations
* 		Mass and "direct" elite positions
pwcorr EliAveObj2 MasAveCloIU2, obs sig
* 		Mass and "direct" elite positions, with alternative specifications
pwcorr EliAveObj2 MasAveCloGP2, obs sig
pwcorr EliAveObj2 MasAveVotGP2, obs sig
pwcorr EliAveObj2 MasAveVotIU2, obs sig
* 		Mass and "indirect" elite positions
pwcorr EliAvePerIU2 MasAveCloIU2, obs sig
* 		Mass and "indirect" elite positions, with alternative specifications
pwcorr EliAvePerGP2 MasAveCloGP2, obs sig
pwcorr EliAvePerGP2 MasAveVotGP2, obs sig
pwcorr EliAvePerIU2 MasAveVotIU2, obs sig
* 		Mass and "indirect" elite positions, with 40 parties instead of 77
pwcorr EliAvePerGP2 MasAveCloGP2 if Counter==1, obs sig
pwcorr EliAvePerGP2 MasAveVotGP2 if Counter==1, obs sig
pwcorr EliAvePerIU2 MasAveCloIU2 if Counter==1, obs sig
pwcorr EliAvePerIU2 MasAveVotIU2 if Counter==1, obs sig
* 	Responsiveness (regression)
* 		Mass and "direct" elite positions
regress EliAveObj2 MasAveCloIU2
* 		Mass and "direct" elite positions, with alternative specifications
regress EliAveObj2 MasAveCloGP2
regress EliAveObj2 MasAveVotGP2
regress EliAveObj2 MasAveVotIU2
* 		Mass and "indirect" elite positions
regress EliAvePerIU2 MasAveCloIU2
* 		Mass and "indirect" elite positions, with alternative specifications
regress EliAvePerGP2 MasAveCloGP2
regress EliAvePerGP2 MasAveVotGP2
regress EliAvePerIU2 MasAveVotIU2
* 		Mass and "indirect" elite positions, with 40 parties instead of 77
regress EliAvePerGP2 MasAveCloGP2 if Counter==1
regress EliAvePerGP2 MasAveVotGP2 if Counter==1
regress EliAvePerIU2 MasAveCloIU2 if Counter==1
regress EliAvePerIU2 MasAveVotIU2 if Counter==1

* Authority over immigration policy
* 	Correlations
* 		Mass and "direct" elite positions
pwcorr EliAveObj3 MasAveCloIU3, obs sig
* 		Mass and "direct" elite positions, with alternative specifications
pwcorr EliAveObj3 MasAveCloGP3, obs sig
pwcorr EliAveObj3 MasAveVotGP3, obs sig
pwcorr EliAveObj3 MasAveVotIU3, obs sig
* 		Mass and "indirect" elite positions
pwcorr EliAvePerIU3 MasAveCloIU3, obs sig
* 		Mass and "indirect" elite positions, with alternative specifications
pwcorr EliAvePerGP3 MasAveCloGP3, obs sig
pwcorr EliAvePerGP3 MasAveVotGP3, obs sig
pwcorr EliAvePerIU3 MasAveVotIU3, obs sig
* 		Mass and "indirect" elite positions, with 40 parties instead of 77
pwcorr EliAvePerGP3 MasAveCloGP3 if Counter==1, obs sig
pwcorr EliAvePerGP3 MasAveVotGP3 if Counter==1, obs sig
pwcorr EliAvePerIU3 MasAveCloIU3 if Counter==1, obs sig
pwcorr EliAvePerIU3 MasAveVotIU3 if Counter==1, obs sig
* 	Responsiveness (regression)
* 		Mass and "direct" elite positions
regress EliAveObj3 MasAveCloIU3
* 		Mass and "direct" elite positions, with alternative specifications
regress EliAveObj3 MasAveCloGP3
regress EliAveObj3 MasAveVotGP3
regress EliAveObj3 MasAveVotIU3
* 		Mass and "indirect" elite positions
regress EliAvePerIU3 MasAveCloIU3
* 		Mass and "indirect" elite positions, with alternative specifications
regress EliAvePerGP3 MasAveCloGP3
regress EliAvePerGP3 MasAveVotGP3
regress EliAvePerIU3 MasAveVotIU3
* 		Mass and "indirect" elite positions, with 40 parties instead of 77
regress EliAvePerGP3 MasAveCloGP3 if Counter==1
regress EliAvePerGP3 MasAveVotGP3 if Counter==1
regress EliAvePerIU3 MasAveCloIU3 if Counter==1
regress EliAvePerIU3 MasAveVotIU3 if Counter==1

* Cots of providing asylum
* 	Correlations
* 		Mass and "direct" elite positions
pwcorr EliAveObj4 MasAveCloIU4, obs sig
* 		Mass and "direct" elite positions, with alternative specifications
pwcorr EliAveObj4 MasAveCloGP4, obs sig
pwcorr EliAveObj4 MasAveVotGP4, obs sig
pwcorr EliAveObj4 MasAveVotIU4, obs sig
* 		Mass and "indirect" elite positions
pwcorr EliAvePerIU4 MasAveCloIU4, obs sig
* 		Mass and "indirect" elite positions, with alternative specifications
pwcorr EliAvePerGP4 MasAveCloGP4, obs sig
pwcorr EliAvePerGP4 MasAveVotGP4, obs sig
pwcorr EliAvePerIU4 MasAveVotIU4, obs sig
* 		Mass and "indirect" elite positions, with 40 parties instead of 77
pwcorr EliAvePerGP4 MasAveCloGP4 if Counter==1, obs sig
pwcorr EliAvePerGP4 MasAveVotGP4 if Counter==1, obs sig
pwcorr EliAvePerIU4 MasAveCloIU4 if Counter==1, obs sig
pwcorr EliAvePerIU4 MasAveVotIU4 if Counter==1, obs sig
* 	Responsiveness (regression)
* 		Mass and "direct" elite positions
regress EliAveObj4 MasAveCloIU4
* 		Mass and "direct" elite positions, with alternative specifications
regress EliAveObj4 MasAveCloGP4
regress EliAveObj4 MasAveVotGP4
regress EliAveObj4 MasAveVotIU4
* 		Mass and "indirect" elite positions
regress EliAvePerIU4 MasAveCloIU4
* 		Mass and "indirect" elite positions, with alternative specifications
regress EliAvePerGP4 MasAveCloGP4
regress EliAvePerGP4 MasAveVotGP4
regress EliAvePerIU4 MasAveVotIU4
* 		Mass and "indirect" elite positions, with 40 parties instead of 77
regress EliAvePerGP4 MasAveCloGP4 if Counter==1
regress EliAvePerGP4 MasAveVotGP4 if Counter==1
regress EliAvePerIU4 MasAveCloIU4 if Counter==1
regress EliAvePerIU4 MasAveVotIU4 if Counter==1
